//
//  ZTHiperTimer.h
//  ZHYYTool
//
//  Created by MT-SW-005 on 2021/9/17.
//  Copyright © 2021 MT-SW-005. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#include <stdio.h>
#include <sys/time.h>
#include <time.h>

@interface ZTHiperTimer : NSObject
{
@private
    struct timeval tv;
    uint64_t mStart;
    uint64_t mEnd;
}

/**
* 返回时间间隔
@return int  时间间隔 ，单位ms
*/
-(int) durationMillisecond;

/**
delay s
*/
+(void) DelaySecond:(double) delaytime;


/**
* delay ms
 */
+(void) DelayMillsecond:(int) delaytime;


/**
开始计时
usage :
 ZTHiperTimer *hp =[[ZTHiperTimer alloc] init];
 [hp Start];
 [ZTHiperTimer DelayMillsecond:2000];   //delay 2 s
 timee = [hp durationMillisecond];
*/
-(void) Start;
@end




